import http from "./request"

// 新增
export const addApi = async parm => {
    return await http.post("/api/repair", parm)
}

// 编辑
export const editApi = async parm => {
    return await http.put("/api/repair", parm)
}

// 删除
export const deleteApi = async parm => {
    return await http.delete("/api/repair", parm)
}

// 列表
export const listApi = async parm => {
    return await http.get("/api/repair/list", parm)
}

// 获取所有住人的宿舍名字
export const getSelectBedNameListApi = async () => {
    return await http.get("/api/repair/getSelectBedNameList", null)
}